Skip to content

fix: localize the Assets catalog list chrome - #80

Merged
IAnMove merged 1 commit into
mainfrom
fix/i18n-assets-catalog
Sep 2, 2026
Merged

fix: localize the Assets catalog list chrome#80
IAnMove merged 1 commit into
mainfrom
fix/i18n-assets-catalog

Conversation

@IAnMove

@IAnMove IAnMove commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Resultado

Follow-up acotado del catálogo de Assets. No traduce el resto de la app ni el cuerpo de VideoExtraInfoDialog. No reescribe el inspector Extra info.

  • Toolbar y listado de Assets (AssetsPanel) pasan a claves activity.catalog.*
  • Filtros de tipo reutilizan navigation.tabs.all/images/videos/audio/model3d/scenes y añaden navigation.tabs.documents
  • Búsqueda y recarga reutilizan common.actions.search / common.actions.reload para el nombre accesible; el placeholder y el tooltip siguen siendo copy de catálogo
  • El recuento usa activity.catalog.itemsAcrossLocations (plural) en vez de sobrecargar common.count.item_*
  • Inspector Extra info (activity.inspector.*, activity.extraInfo) se deja como está
  • Glosario: Workspace; Extra info / Información adicional; Output folder / Carpeta de salida; Uploads / Subidas

Zona migrada

Chrome de listado/toolbar del catálogo de Assets.

Deuda que permanece

Etiquetas de campos de VideoExtraInfoDialog, resto de paneles. No se toca init i18n ni resources.ts.

Verificación local

  • npm run i18n:check
  • npm test (486)
  • lint --max-warnings=0
  • npx tsc -b --pretty false

Pendiente de CI en GitHub.

No se han tocado launchers, WanGP, modelos ni comunicaciones/.


Note

Low Risk
UI-only string substitution with matching en/es keys and tests; no API, auth, or data-path changes.

Overview
Replaces hardcoded Spanish/English copy in AssetsPanel list and toolbar with i18n keys so the Assets catalog follows the UI language.

Catalog chrome now uses activity.catalog.* for the item count (itemsAcrossLocations with pluralization), search placeholder, kind/workspace filter labels, reload tooltip, load/error/empty states, and “Load more”. Kind filter options no longer use inline labels; they reference navigation.tabs.* (including new tabs.documents) via typed labelKey entries. Search and reload buttons reuse common.actions.search and common.actions.reload for accessible names.

Locale files add the catalog block in English and Spanish activity.json, plus documents under navigation.tabs. Tests in assetsCatalog.test.mjs and i18nFoundation.test.tsx assert translation usage and block regressions to hardcoded catalog strings. The Extra info inspector and other panels are unchanged.

Reviewed by Cursor Bugbot for commit d2bd615. Configure here.

Move Assets list/toolbar copy into activity.catalog keys, reuse
navigation.tabs for kinds, and keep Extra info inspector strings as-is.
@IAnMove

IAnMove commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

@cursor review

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

PR Review — Loreframe Studio

Risk: low
Scope: 7 file(s); +87/-19; React UI

Automated review from scripts/analyze_pr.py. This is a heuristic pass (no LLM) so humans still own the merge decision.

Findings

  • low — UI changed — rebuild before merge
    Run cd ui && npm run build (CI already does this). Pinokio Update rebuilds for end users; keep ui/dist untracked.

Changed files

  • modified: ui/src/features/assets/AssetsPanel.tsx, ui/src/i18n/locales/en/activity.json, ui/src/i18n/locales/en/navigation.json, ui/src/i18n/locales/es/activity.json, ui/src/i18n/locales/es/navigation.json, ui/tests/assetsCatalog.test.mjs, ui/tests/i18nFoundation.test.tsx

CONTRIBUTING checklist

  • python scripts/verify_clean_repo.py
  • python -m compileall -q app/services app/launch.py scripts
  • cd ui && npm run build if the UI changed
  • No weights, CivitAI sidecars, or generated guides
  • Stays local-first (no required accounts / telemetry)

Posted by the repo PR review workflow. Re-runs on each push to the PR.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit d2bd615. Configure here.

@IAnMove
IAnMove merged commit aa4ed2c into main Sep 2, 2026
5 checks passed
@IAnMove
IAnMove deleted the fix/i18n-assets-catalog branch September 5, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant